package com.mall.common.core.model.entity;

import com.mall.common.core.model.supers.Convert;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 树形节点
 * </p>
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class TreeNode extends Convert {

    protected String id;

    protected String pid;

    protected List<TreeNode> children = new ArrayList<>();
}
